<template>
    <div class="ji">
        <van-nav-bar title="我的积分">
            <van-icon name="cross" slot="left" @click="backOne()"/>
            <van-icon name="ellipsis" slot="right" />
        </van-nav-bar>
        <div class="ji-left">
            <p>可用积分</p>
            <span>
                12345678
            </span>
            <div class="dui" @click="toNextpage4()">
                去兑换
            </div>
            <div class="ji-right" @click="toNextpage5()">
                积分规则
            </div>
        </div>
        <div class="wd">
                <p>我的积分</p>
                <ul class="wd-ll">
                    <li>
                            <p>评论《翡翠的价值》</p>
                            <span>2019-08-22 15:20</span>
                            <i>+3分</i>
                    </li>
                    <li>
                            <p>邀请好友注册</p>
                            <span>2019-08-22 15:20</span>
                            <i>+20分</i>
                    </li>
                    <li>
                            <p>评论《翡翠的价值》</p>
                            <span>2019-08-22 15:20</span>
                            <i>+3分</i>
                    </li>
                    <li>
                            <p>邀请好友注册</p>
                            <span>2019-08-22 15:20</span>
                            <i>+20分</i>
                    </li>
                </ul>
        </div>
    </div>
</template>
<script>
import userfei from "@/views/userfei.vue"
export default {
    name:'userji',

    methods:{
         toNextpage4(){
            this.$router.push(
                {name : 'userji'}
            )
        },
         toNextpage5(){
            this.$router.push(
                {name : 'userfei'}
            )
        },
         backOne(){
            this.$router.go(-1)
        }
    }
}
</script>
<style scoped>
.ji{
    width:100%;
    height:238px;
    background: url(../assets/img/积分背景.png) no-repeat;
    background-size:cover;
}
.van-nav-bar{
    text-align: left;
    background: none;
    border: none;
}
.van-nav-bar__left .van-nav-bar__text {
    color:#ffffff;
    font-size: 3rem;
}
.van-nav-bar__title{
    max-width: 70%;
    color: #ffffff;
}
.van-icon, .van-icon::before{
    font-size: 20px;
    color:#ffffff;
}
.van-icon-arrow:before{
    font-size: 1.5rem;
    color: rgba(210,210,210,1)
}
.van-hairline--bottom::after{
    border:none;
}
.van-cell{
    padding: 20px 16px;
}
.van-cell__left-icon{
    font-size: 0.5rem;
}
.van-cell__title {
    font-family:PingFang SC;
    font-size: 1rem;
}
.ji-left{
    width: 100%;
    height: 185px;
}
.ji-left p{
    color:#C2E7FE;
    font-size: 12px;
    position: relative;
    top: 45px;
    margin-left:14.5px; 
}
.ji-left span{
    color: #FFFFFF;
    font-size: 30px;
    position: absolute;
    top: 127.5px;left: 14.5px;
}
.dui{
    width:100px;
    height:30px;
    background:#F2F9FF;
    border-radius: 15px;
    font-size: 15px;
    color: #334FFF;
    text-align: center;
    line-height: 30px;
    font-weight: 500px;
    position: absolute;
    top: 174.5px;left: 20px;
}
.ji-right{
    width: 79.5px;
    height:24px;
    color:#334FFF;
    background: #D2D7F9;
    border-radius:10px 0px 0px 10px;
    position: absolute;
    top: 97px;right:0px;
    text-align: center;
    line-height: 24px;
    font-weight: 600px;
}
.wd{
    width: 100%;
    height: 435.5px;
    background: #ffffff;
    border-radius: 15px;
    position: absolute;
    top: 226px;
}
.wd p{
    color:#2A2E34;
    font-size: 19px;
    font-weight: bold;
    position: relative;
    top: 15px;
    margin-left:14.5px; 
}
.wd-ll{
    width:100%;
    height:100%;
}
.wd-ll p{
    color:#2A2E34;
    font-size: 15px;
    font-weight:bold
}
.wd-ll span{
    color:#606165;
    font-size: 10px;
    font-weight:bold;
    margin-left:16px; 
}
.wd-ll i{
    color: #0ACB0E;
    font-size: 14px;
    font-weight:bold;
    font-style:normal;
    position: relative;
    right:-220px;
}
</style>